//
//  AppDelegate.m
//  Weibo
//
//  Created by qiang on 4/21/16.
//  Copyright © 2016 QiangTech. All rights reserved.
//

#import "AppDelegate.h"

#import "MainTabBarController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // 1. 创建App窗体
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    // 2. 设置背景色为白色
    self.window.backgroundColor = [UIColor whiteColor];
    // 3. 创建MainTabBarController,作为窗体的根控制器
    self.window.rootViewController = [[MainTabBarController alloc] init];
    // 4. 设置为可见和设置为keyWindow(注:程序中可以有多个UIWindow对象,keyWidow是活跃的window，即和用户交互的window)
    [self.window makeKeyAndVisible];
    
    return YES;
}

@end
